/**
 * 
 */
package com.jie.eclipse.pan.form.item;

import com.jie.eclipse.pan.data.BaseDataEntity;
import com.jie.eclipse.pan.form.support.FormItem;

/**
 * @author yanjie
 *
 */
public class FieldSet extends FormItem{
	/**
	 * 
	 */
	public FieldSet() {
		this.setNodeName("jm:fieldset");
		//this.setNoBody(true);
	}
	
	@Override
	public void configItem(BaseDataEntity config,String action){
		this.spsnnv("id",config.gpsv("id"));
		this.spsnnv("caption", config.gpsv("caption"));
		
		this.spsnnv("collapsedStyle", config.gpsv("collapsedStyle"));
		
		if(!config.gpbv("collapsed", true)){
			this.spsv("collapsed","false");
		}
	}
}